﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml;

namespace SMS.Console
{
    class XmlHelper
    {
        public static XmlNode LoadNode(XmlNode parentNode, string nodeName)
        {
            XmlNode node = parentNode.SelectSingleNode(nodeName);
            if (node == null)
            {
                node = parentNode.OwnerDocument.CreateElement(nodeName);
                parentNode.AppendChild(node);
            }
            return node;
        }
    }
}
